-
Notifications
You must be signed in to change notification settings - Fork 249
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix: Prevent repeated API calls in searchMessages after typing stops #655
base: develop
Are you sure you want to change the base?
Conversation
I have run Prettier and lint on the commit and made necessary changes @Spiral-Memory |
@devanshkansagra |
Can you please also fix this in this same PR ?, it has nothing to with your code, but this is happening in prod env : https://rocketchat.github.io/EmbeddedChat/?path=/story/embeddedchat-simple--simple |
Will look into it @Spiral-Memory |
@Spiral-Memory I shall improvise this PR soon |
Sure ❤️ |
Hey @SinghaAnirban005 |
Yes !! @Spiral-Memory |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving to test. Review pending
Ready to review ? @SinghaAnirban005 |
Yes @Spiral-Memory |
Brief Title
Memoized
debouncedSearch
withuseCallback
to prevent re-creation on each renderAcceptance Criteria fulfillment
Fixes #650
Video/Screenshots
EmbeddedChat._.Simple.-.Simple.Storybook.-.Brave.2024-10-31.15-56-44.mp4
Continuous API calls have been fixed
PR Test Details
Note: The PR will be ready for live testing at https://rocketchat.github.io/EmbeddedChat/pulls/pr-<pr_number> after approval.